import React, { useMemo, useState } from 'react'

const MemoTest = () => {
    const getTime = useMemo(() => {
        return `${+new Date()}`
    }, [])

    console.log(getTime)

    const [count, setCount] = useState(0)
    return (
        <div>
            <button onClick={() => {setCount(count + 1)}}>count + 1</button>
        </div>
    )
}

export default MemoTest
